const { merge } = require('webpack-merge');

const config = require("./config/config")
const build = require("./config/build")
const serve = require("./config/serve")

module.exports = function ({ development }) {
    // if (development) return {}//合并 serve.js和config.js
    // else return {} //合并 build.js和config.js
    return merge(config, development ? serve : build)
}